<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>SSE Demo</title>
    <script src="/webjars/htmx.org/1.9.10/dist/htmx.min.js"></script>
</head>
<body>
    <h1>Server-Sent Events Demo</h1>
    
    <div hx-sse="connect:/bourse/sse?clientId=12312331">
        <div hx-sse="swap:message">
            <!-- Events will appear here -->
        </div>
    </div>

    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 2rem;
        }
        [hx-sse] {
            margin-top: 1rem;
            padding: 1rem;
            border: 1px solid #ddd;
            border-radius: 4px;
        }
    </style>
</body>
</html>
